package main

import (
	"fmt"
	"time"
)

//go run -race main.go 可以查看数据竞争检测
func raceTest() {
	a := 1
	go func() {
		a = 2
	}()
	a = 3
	fmt.Println("a is ", a)

	time.Sleep(2 * time.Second)
}
